 package handling.opcode;

 import handling.ExternalCodeTableGetter;
 import handling.WritableIntValueHolder;
 import java.io.BufferedReader;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.util.Properties;




 public enum CashShopOpcode
   implements WritableIntValueHolder
 {
/*  18 */   加载道具栏(6),

/*  20 */   加载礼物(8),

/*  22 */   加载购物车(10),

/*  24 */   更新购物车(12),

/*  26 */   购买道具(14),

/*  28 */   商城送礼(23),

/*  30 */   错误提示(24),

/*  32 */   扩充道具栏(25),

/*  34 */   扩充仓库(27),

/*  36 */   购买角色卡(44),

/*  38 */   扩充项链(49),

/*  40 */   商城到背包(35),

/*  42 */   背包到商城(37),

/*  44 */   删除道具(39),

/*  46 */   道具到期(41),

/*  48 */   换购道具(68),

/*  50 */   购买礼包(72),

/*  52 */   商城送礼包(74),

/*  54 */   购买任务道具(75),

/*  56 */   打开箱子(108),

/*  58 */   抵用券兑换道具(151),
/*  59 */   领奖卡提示(-2),
/*  60 */   注册商城(-2),
/*  61 */   商城提示(-2);

   static {
/*  64 */     reloadValues();
   }

/*  67 */   private int code = -2;

   CashShopOpcode(int code) {
/*  70 */     this.code = code;
   }

   public static Properties getDefaultProperties() throws IOException {
/*  74 */     Properties props = new Properties();
/*  75 */     FileInputStream fileInputStream = new FileInputStream("properties/cashops.properties");
/*  76 */     BufferedReader buff = new BufferedReader(new InputStreamReader(fileInputStream, "GBK"));
/*  77 */     props.load(buff);
/*  78 */     fileInputStream.close();
/*  79 */     buff.close();
/*  80 */     return props;
   }

   public static void reloadValues() {
     try {
/*  85 */       File file = new File("properties/cashops.properties");
/*  86 */       if (file.exists()) {
/*  87 */         ExternalCodeTableGetter.populateValues(getDefaultProperties(), values());
       }
/*  89 */     } catch (IOException e) {
/*  90 */       throw new RuntimeException("加载 cashops.properties 文件出现错误", e);
     }
   }


   public short getValue() {
/*  96 */     return (short)this.code;
   }


   public void setValue(short code) {
/* 101 */     this.code = code;
   }
 }


/* Location:              C:\PGX\Server.jar!\handling\opcode\CashShopOpcode.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */